<?php
get_header();
if(have_posts()) : while(have_posts()) : the_post();
?>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h1 class="title"><?php the_title(); ?></h1> 
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="main-content">
                <?php the_content(); ?>
            </div> 
        </div>
    </div>
</div>
<?php
endwhile; endif; 
get_footer();
?>